package com.simtop.car.pojo;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.metadata.BaseRowModel;
import com.uetty.common.excel.anno.CellStyle;
import lombok.Data;

import java.util.Date;
import java.util.HashMap;
import java.util.Map;


/**
 * 信息来源（微博）
 */
@Data
public class WeiBo extends BaseRowModel {

    @ExcelIgnore
    private Integer weiboId;

    @ExcelProperty(index = 0, value = "用户名")
    private String username;//用户名

    @ExcelProperty(index = 1, value = "博文")
    private String blogArticle;//博文

    @ExcelProperty(index = 2, value = "发表时间,日期格式")
    private Date postedTime;//发表时间

    @ExcelProperty(index = 3, value = "转发数")
    private Integer forwardingNumber;//转发数

    @ExcelProperty(index = 4, value = "评论数")
    private Integer numberOfComments;//评论数

    @ExcelProperty(index = 5, value = "点赞数")
    private Integer thumbUpFor;//点赞数

    @ExcelProperty(index = 6, value = "采集时间,日期格式")
    private Date acquisitionTime;//采集时间

    @ExcelProperty(index = 7, value = "更新时间,日期格式")
    private Date turnoverTime;//更新时间

    @ExcelProperty(index = 8, value = "删除时间,日期格式")
    private Date deleteTime;//删除时间

    @ExcelProperty(index = 9, value = "来源（即微博）")
    private String source;//来源（即微博）

    @ExcelProperty(index = 10,value ="车企简称" )
    private String carProduct;//汽车品牌


    @ColumnWidth(value = 80)
    @ExcelProperty(index = 11,value ="日期（时间）格式必须设置为yyyy-mm-dd hh:mm:ss" )
    private String dateFormat;//日期格式

    @ExcelIgnore
    private Integer weiboSourceId;//来源外键

    @ExcelIgnore
    private Integer userId;

}
